import { defineStore } from 'pinia';
export interface IControllerState {
  // 补差价弹窗依赖
  compPriceDiffPopupData?: {
    data: IGetBtnDefaultGoodsRes;
    linkUrl: string;
    eventId: number;
  };
  mergerCaseModalData?: IServerBtnListBtnList[];
  recordingTempFilePath: Array<{ key: string; value: string }>;
  skuSelectionPopup: boolean;
  setEquipInfoPopup: boolean;
  skuPackageSelectionPopup: boolean;
  productInformation?: IProductInformation;
  deviceListPopupData: IObtainDeviceListUnderDeviceCategoryRes[];
  originNo: string;
}
const useControllerStore = defineStore({
  id: 'controller',
  state: (): IControllerState => ({
    skuSelectionPopup: false,
    skuPackageSelectionPopup: false,
    setEquipInfoPopup: false,
    productInformation: undefined,
    recordingTempFilePath: [],
    deviceListPopupData: [],
    originNo: '',
  }),
});
export default useControllerStore;
